package com.atguigu.gmall.list.controller;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        //需求：从键盘输入星期的数字[1,7]，输出对应的英文单词
        Scanner input = new Scanner(System.in);

        System.out.print("请输入星期的数字[1,7]：");
        int week = input.nextInt();

        switch(week){
            default:
                System.out.println("输入错误");
                break;
            case 1:
                System.out.println("Monday");
                break;
            case 2:
                System.out.println("Tuesday");
                break;
            case 3:
                System.out.println("Wednesday");
                break;
            case 4:
                System.out.println("Thursday");
                break;
            case 5:
                System.out.println("Friday");
                break;
            case 6:
                System.out.println("Saturday");
                break;
            case 7:
                System.out.println("Sunday");
                break;//这里可以不加，如果加上，就是保持队形一致
        }
    }

}